package com.esiag.isidis.trail;

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class MainServer {

	
	public static void main(String[] args) {

		byte[] buffer = new byte[4];
		for (int i = 0; i < buffer.length; i++) {
			buffer[i] = 9;
		}
		try{
			InetAddress host_address = InetAddress.getByName("localhost");
			DatagramSocket socket = new DatagramSocket();
			DatagramPacket paquet = new DatagramPacket(buffer, buffer.length,host_address,2020);
			socket.send(paquet);
		}catch(Exception e){
		    System.err.println("Erreur: "+e);
		}
 
	}

}
